package helloworld.service.administrate;

import helloworld.dao.administrate.FunctionDao;
import helloworld.entity.administrate.Function;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class FunctionService implements IFunctionService {

	private FunctionDao functionDao;
	
	@Autowired
	public void setFunctionDao(FunctionDao functionDao) {
		this.functionDao = functionDao;
	}

	/* (non-Javadoc)
	 * @see helloworld.service.administrate.IFunctionService#getAllFunctions()
	 */
	@Transactional(readOnly = true)
	public List<Function> getAllFunctions() {
		return functionDao.getAll();
	}

	
}
